package cz.possoft.client.loader;

/**
 * Deployment util methods.
 * 
 * @author mposolda
 *
 */
class DeploymentUtils {
	
	private DeploymentUtils() {}
	
	// util helper method
	static String getPrefixForJarFile(String filename) {
		if (filename.endsWith("Generic.jar")) {
			return filename.substring(0, filename.length()-11);
		}
		else { // automatic assumption that Client.jar is here
			return filename.substring(0, filename.length()-10);
		}
	}	

}
